var childProcess = require("child_process");

childProcess.exec(
  " mongodump -h 127.0.0.1:27017 -d  koacms -o ./doc ",
  function (error, stdout, stderr) {
    if (error) {
      console.log("执行备份数据数据库失败, 异常信息:" + error.message);
    } else {
      console.log("备份数据库成功！");
    }
  }
);
